package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserFavoriteItems;
import com.ecoolex.ying.space.entity.UserFavoriteItemsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserFavoriteItemsMapper {
    long countByExample(UserFavoriteItemsExample example);

    int deleteByExample(UserFavoriteItemsExample example);

    int deleteByPrimaryKey(Integer favoriteItemId);

    int insert(UserFavoriteItems record);

    int insertSelective(@Param("record") UserFavoriteItems record, @Param("selective") UserFavoriteItems.Column ... selective);

    UserFavoriteItems selectOneByExample(UserFavoriteItemsExample example);

    List<UserFavoriteItems> selectByExample(UserFavoriteItemsExample example);

    UserFavoriteItems selectByPrimaryKey(Integer favoriteItemId);

    UserFavoriteItems selectByPrimaryKeyWithLogicalDelete(@Param("favoriteItemId") Integer favoriteItemId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserFavoriteItems record, @Param("example") UserFavoriteItemsExample example, @Param("selective") UserFavoriteItems.Column ... selective);

    int updateByExample(@Param("record") UserFavoriteItems record, @Param("example") UserFavoriteItemsExample example);

    int updateByPrimaryKeySelective(@Param("record") UserFavoriteItems record, @Param("selective") UserFavoriteItems.Column ... selective);

    int updateByPrimaryKey(UserFavoriteItems record);

    int batchInsert(@Param("list") List<UserFavoriteItems> list);

    int batchInsertSelective(@Param("list") List<UserFavoriteItems> list, @Param("selective") UserFavoriteItems.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserFavoriteItemsExample example);

    int logicalDeleteByPrimaryKey(Integer favoriteItemId);
}